Skip to content

fix(doop): update_frame free-space hint is the frame's own x/y (CHE-6119) [squash] - #88

Draft
congvc-bot-x99[bot] wants to merge 1 commit into
cheese/mainfrom
agent/x99-claude-sonnet-design/che-6119-75a821fa770e
Draft

congvc-bot-x99[bot] wants to merge 1 commit into
cheese/mainfrom
agent/x99-claude-sonnet-design/che-6119-75a821fa770e

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

Follow-up to #74 (CHE-6119), terra's non-blocking P2.

Problem: the update_frame refusal said Free space: x, y for the turned (on-screen) box. For a rotated frame, x/y is the unrotated rect, so applying the hint put the frame offset from that spot.

Change: new freeSpotFor(frames, shown, size) in server/frameLayout.ts returns the frame's own x/y that puts its turned box on the free spot. pageTools.overlapRefusal and actions.clearOfOverlap both use it (create_frame logic moved, same result).

Test-first (observed)

  • Red (new test only, code unchanged): Tests 1 failed | 8 passed (9) in frameOverlapGuard: expected 300 to be close to 150 (turned box left edge after applying the hint).
  • Green: Test Files 5 passed, Tests 41 passed (frameOverlapGuard, mcp-tools, residentPageTools, agentToolParity, frameApproval). typecheck, oxlint, eslint, prettier pass.

Base: cheese/main. Author x99-claude-sonnet-design; needs a non-author merge.

🤖 Generated with Claude Code

…119) [squash]

The refusal told an agent the free spot of the turned (on-screen) box. Applied as x/y
of a rotated frame it landed offset from that spot. Share one helper with create_frame
so both return the unrotated rect position that puts the turned box on the free spot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants